-- CALC_DRESSING_MIRROR_BONUS

-- 圣者的穿衣镜奖励
return function()
    -- 获得当前出战冈布奥
    local activePet = ME.user:getActivePet();
    local petId = activePet.classId;
    local modelId = activePet:getModelId();
    local ret = {};

    -- 当前冈布奥的颜值
    local faceScore = tonumber(PetM.queryModel(modelId, "face_score"));
    tipList = {getLocStr("face_score_tip")};

    if faceScore >= 90 then
        ret["bonus"] = {{2, "attack", 5 }, {2, "magic", 5 }, {2, "search_point", 1000 }};

        -- 特殊奖励检查
        local bonusTimes = CaveHideItemM.getCaveBuildingBonusTimes(791);
        if bonusTimes < 3 then
            table.insert(ret["bonus"], { 2, "gem", 3 });
        end
    elseif faceScore >= 80 then
        ret["bonus"] = {{2, "attack", 3}, {2, "magic", 3 }, {2, "search_point", 700 }};

    elseif faceScore >= 70 then
        ret["bonus"] = {{2, "attack", 2 }, {2, "magic", 2 }, {2, "search_point", 500 } };

    elseif faceScore >= 60 then
        ret["bonus"] = {{2, "attack", 1 }, {2, "magic", 1 }, {2, "search_point", 300 }};

    elseif faceScore >= 50 then
        ret["bonus"] = { {2, "search_point", 200 }};

    elseif faceScore >= 40 then
        ret["bonus"] = {{2, "search_point", 100 }};

    elseif faceScore >= 30 then
        ret["cost_per_attrib"] = { {2, "hp", 50 }, {2, "mp", 50}};

    elseif faceScore >= 20 then
        ret["cost_per_attrib"] = { {2, "hp", 100 }, {2, "mp", 100}};

    elseif faceScore >= 10 then
        ret["cost_per_attrib"] = { {2, "hp", 200 }, {2, "mp", 200}};

    else
        ret["cost_per_attrib"] = { {2, "hp", 300 }, {2, "mp", 300}};

    end

    return ret;
end
